﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SGArchiveSystem7x.Controllers.Archive
{
    public class ArchiveWHController : BaseController
    {
        /// <summary>
        /// 本控制器的名称，用于权限访问
        /// </summary>
        private string sControllerName = "ArchiveWH";
        /// <summary>
        /// 档案应用
        /// </summary>
        /// <param name="aid">档案类型</param>
        /// <returns></returns>
        //[ValidateAntiForgeryToken]
        public ActionResult Index(int aid)
        {
            var n = this.VaildUser(sControllerName);
            if (n != null)
                return n;

            return RedirectToAction("ArchiveAJ", "ArchiveInit", new { arid = aid.ToString(), type = "档案维护" });
        }
    }
}